From: Lars Magne Ingebrigtsen Date: Sun, 24 Oct 2010 00:29:21 +0000 (+0000) Subject: gnus-group.el (gnus-group-completing-read): Remove all newlines from group names... X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5979 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7a133d36faee5204a7201b4e7ac266b385c3d97b;p=emacs.git gnus-group.el (gnus-group-completing-read): Remove all newlines from group names. They mess up the group buffer badly. shr.el (shr-tag-strong): Added. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index c13c35a0617..d67f4780ca3 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,5 +1,12 @@ +2010-10-23 Lars Magne Ingebrigtsen + + * shr.el (shr-tag-strong): Added. + 2010-10-22 Lars Magne Ingebrigtsen + * gnus-group.el (gnus-group-completing-read): Remove all newlines from + group names. They mess up the group buffer badly. + * shr.el (shr-tag-img): Don't bug out on images that don't have a SRC. * gnus-group.el (gnus-group-mark-group): Use gnus-group-position-point diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 7720c1cc7e6..667c4bafcd8 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el @@ -2189,11 +2189,13 @@ if it is not a list." require-match initial-input (or hist 'gnus-group-history) def)) - (if (if (listp collection) - (member group (mapcar 'symbol-name collection)) - (symbol-value (intern-soft group collection))) - group - (mm-encode-coding-string group (gnus-group-name-charset nil group))))) + (unless (if (listp collection) + (member group (mapcar 'symbol-name collection)) + (symbol-value (intern-soft group collection))) + (setq group + (mm-encode-coding-string + group (gnus-group-name-charset nil group)))) + (replace-regexp-in-string "\n" "" group))) ;;;###autoload (defun gnus-fetch-group (group &optional articles) diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 6646cecb2fa..1eb629e4874 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -441,6 +441,9 @@ Return a string with image data." (defun shr-tag-em (cont) (shr-fontize-cont cont 'bold)) +(defun shr-tag-strong (cont) + (shr-fontize-cont cont 'bold)) + (defun shr-tag-u (cont) (shr-fontize-cont cont 'underline))